FROM python:2.7-slim
WORKDIR /app

COPY 1M_file /app/
COPY s3_monitor.py /app/

RUN apt-get update && apt-get install -y \
    iputils-ping \
    curl \
    telnet && \
    pip install --no-cache-dir pymongo requests boto3 botocore

CMD ["python", "s3_monitor.py"]
